<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>生命周期勾子</title>
    <script src="./js/vue.js"></script>
</head>
<body>
    <div id="root">hello world</div>
    <script>
        var vm = new Vue({
            el: '#root',
            beforeCreate : function(){
                console.log('beforeCreate');
            },
            created: function(){
                console.log('created');
            }
        });
    </script>
</body>
</html>